<!--<div class='col-xs-12 text-danger text-center' style="font-size:5rem" id="reflect_on">
    <span class="glyphicon glyphicon-fire">{$reflect_num|default='0'}</span>
</div>-->
<script>
            $('#reflect_on').on('click' ,function(event){
                        let url = "{:merge_url('reflect/incr_reflect');}"
                        let data = {};
                        $.post (url, data, function (res)
                        {
                           $(".glyphicon-fire").html(res.data);
                        });
          });
</script>
<div class='col-xs-12 m-t-xs p-l-md p-r-md'>
    {foreach name="plan_list" item="vo" key = "date"}
    <div class="col-xs-12 text-center" style="margin-top: 10px;">
        <span class="text-info"  style="">{$date|default=''}</span>
    </div>
        {foreach name="$vo" item="vo2" key = "id"}
            {if (input('state',0)==1)}
            <!--完成-->
                <div class="col-xs-12 text-center " style="line-height: 5rem;font-size: 1.5rem;border: 1px solid #e1e1e8;border-radius: 8px;margin-top: 10px;">
                    <div class="col-xs-1"><input type="checkbox" name="iCheck" data-id="{$vo2.id|default='无'}" checked></div>
                    <div class="col-xs-10" onclick='location.href="{:merge_url('plan_detail',['id'=>$vo2.id]);}"'>{$vo2.plan_str|default=''}</div>
                </div>
            {else /} 
            <!--待完成-->
            <div class="col-xs-12 text-center " style="line-height: 5rem;font-size: 1.5rem;border: 1px solid #e1e1e8;border-radius: 8px;margin-top: 10px;">
                <div class="col-xs-1"><input type="checkbox" name="iCheck" data-id="{$vo2.id|default='无'}" ></div>
                <div class="col-xs-10" onclick='location.href="{:merge_url('plan_detail',['id'=>$vo2.id]);}"'>{$vo2.plan_str|default=''}</div>
            </div>
            {/if}
        {/foreach}
    {/foreach}
</div>
<script>
    $ (function ($)
    {
        //历史不可改
        {if (input('state', 0) == 1)}
        $ ('input').iCheck ('disable');
        {else/}
        $('input').iCheck('enable');
        {/if}
    })

</script>